// import request from '../utils/request';
import { defHttp as request } from '/@/utils/http/axios';

export const addGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/addUserGroupByClient`,
        data: p,
    });   
}

export const queryGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/queryUserGroupByClient`,
        data: p,
    });   
}

export const updateGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/modifyUserGroupByClient`,
        data: p,
    });   
}
export const deleteGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/batchRemoveUserGroupByClient`,
        data: p,
    });   
}
export const addUesertoGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/batchInsertClientUserGroup`,
        data: p,
    });   
}
export const queryClientByUserIdReq = (p) => {
    return request.post({
        url: `/core/user/queryClientByUserId`,
        data: p,
    });   
}
export const queryAllUserAndOrgByClientIdReq = (p) => {
    return request.post({
        url: `/core/user/queryAllUserAndOrgByClientId`,
        data: p,
    });   
}
export const getUsersByGroupIdReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/queryUserExistsUserGroupByClient`,
        data: p,
    });   
}
export const getUsersNotInCurrentGroupReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/queryUserNotExistsUserGroupByClient`,
        data: p,
    });   
}
export const delUsersByGroupIdReq = (p) => {
    return request.post({
        url: `/core/clientUserGroup/batchRemoveUserIdByUserGroup`,
        data: p,
    });   
}